package com.service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.dao.LogDAO;
import com.pojo.Log;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author: T-bao
 * @Date: 2021-4-8 9:21
 * @Description:
 */
@Service
public class LogService extends ServiceImpl<LogDAO, Log> {

    @Autowired
    private LogDAO logDAO;

    public List<Log> selectLog(String name, int page, int limit, String start_time, String end_time){
        return logDAO.selectLog(name,page,limit,start_time,end_time);
    }

    public int selectLogCount(String name,String start_time,String end_time){
        return logDAO.selectLogCount(name,start_time,end_time);
    }

}
